import videojs from 'video.js'

let player = videojs('my-player', {
    controls:true,
    height:200,
    muted:true,
    preload:'auto'
}, function onPlayerReady() {
    videojs.log('Your player is ready!');

    // In this context, `this` is the player that was created by Video.js.
    this.play();

    // How about an event listener?
    this.on('ended', function () {
        videojs.log('Awww...over so soon?!');
    });
});